package com.qww.exec13;

class A {
    void f(int x) { System.out.println(x); }
    void f(double x) { System.out.println(x); }
    void f(int x1, double x2) { System.out.println(x1 + ", " + x2); }
}

public class B extends A {
    void f(String s) { System.out.println(s); }
    public static void main(String[] args) {
        B b = new B();
        b.f("asdfghjkl;");
        b.f(1);
        b.f(1.2);
        b.f(1, 2);
    }
}
/* 运行结果
asdfghjkl;
1
1.2
1, 2.0
*/